package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 代扣签约号(XfSignNo)实体类
 *
 * @author makejava
 * @since 2022-07-27 09:44:34
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_sign_no")
public class EntityXfSignNo implements Serializable {

    private static final long serialVersionUID = -25240693400199332L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 单位号
     */
    private Long comId;
    /**
     * 商户号
     */
    private Integer merchId;
    /**
     * 人员Id
     */
    private Long pId;
    /**
     * 签约渠道
     */
    @JsonProperty("payWay")
    private Integer payWay;
    /**
     * 签约号
     */
//    @TableField(typeHandler = SignNoHandle.class)
    @JsonProperty("signNo")
    private String signNo;
    /**
     * 1已签约   0已解约
     */
    private Integer status = 1;

    //备注
    private String remark ;
    /**
     * 生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //阿里人脸开通 1 开通 0关闭
    private Integer alFace;
    //阿里人脸openid
    private String faceOpenId;
}

